package com.uva.dbcs.utilidades.persistencia;

import java.util.List;

public interface GenericDAO<T, P> {

	int count();

	List<T> findAll();
	
	List<T> findWithPagination(int first, int size);
	
	T find(P id);

	void merge(T entity);

	void delete(T entity);

	void create(T entity);

	void refresh(T entity);

	void flush();

}
